package com.example.xiaomi.service;
import com.example.xiaomi.entity.wordfreq;
import com.example.xiaomi.mapper.WordfreqMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WordfreqServiceImpl implements WordfreqService{

    @Autowired
    private WordfreqMapper mapper;

    @Override
    public List<wordfreq> findAllfreq() {
        List<wordfreq> allFreq = mapper.findAllfreq();
        return allFreq;
    }
    public List<wordfreq> findfreq1(){
        List<wordfreq> info=mapper.findfreq1();
        return info;
    }
    public List<wordfreq> findfreq2(){
        List<wordfreq> info=mapper.findfreq2();
        return info;
    }
}
